﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace BACKOFFICE
{
    public partial class EmployeeInfoScreen : DevExpress.XtraEditors.XtraUserControl
    {
        public EmployeeInfoScreen()
        {
            InitializeComponent();
        }

        private void EmployeeInfoScreen_Load(object sender, EventArgs e)
        {
            foreach (DataRow Employee in DataTableClass.EmployeeInfo.Rows)
            {
                if (Employee["EmployeeID"].ToString().Trim() == "3")
                {
                    employeeIDLabel1.Text = Employee["EmployeeID"].ToString().Trim();
                    employeeTitleLabel1.Text = Employee["EmployeeTitle"].ToString().Trim();
                    employeeNameLabel1.Text = Employee["EmployeeFirstName"].ToString().Trim() + "  " + Employee["EmployeeLastName"].ToString().Trim();
                    employeeAddressLabel1.Text = Employee["EmployeeAddress"].ToString().Trim();
                    employeeCityStateZipLabel1.Text = Employee["EmployeeCity"].ToString().Trim() + ",  " + Employee["EmployeeState"].ToString().Trim() + "  " + Employee["EmployeeZip"].ToString().Trim();
                    employeePhoneLabel1.Text = Employee["EmployeePhone"].ToString().Trim();
                    employeeAltPhoneLabel1.Text = Employee["EmployeeAltPhone"].ToString().Trim();
                    employeeSocialSecurityLabel1.Text = Employee["EmployeeSocialSecurity"].ToString().Trim();
                    employeePayRateLabel1.Text = Employee["EmployeePayRate"].ToString().Trim();
                    employeeHireDateLabel1.Text = Employee["EmployeeHireDate"].ToString().Trim();
                }
            }

        }
    }
}
